package com.keba.lamp.complaint.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * 图片扩展表
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-04-19 14:31:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("com_file_rel")
public class ComFileRel extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @TableField(value = "is_del", condition = EQUAL)
    private Integer isDel;
    /**
     * 图片数量
     */
    @TableField(value = "pic_num", condition = EQUAL)
    private Integer picNum;
    /**
     * com_file主键（目前适用pdf切多张图片使用）
     */
    @TableField(value = "com_file_id", condition = EQUAL)
    private Long comFileId;
    /**
     * 扩展字段（json存储）
     */
    @TableField(value = "extend_column", condition = LIKE)
    private String extendColumn;



}
